package com.zhengxyou.jetpackdemo.daggerDemo.module;

import com.zhengxyou.jetpackdemo.daggerDemo.bean.Cloth;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

@Module
public class SenderModule {
    @Provides
    @Singleton
    public Cloth getBlueCloth() {
        Cloth cloth = new Cloth();
        cloth.setColor("蓝色");
        return cloth;
    }

//    @Provides
//    @PerActivity
//    public ClothsHandle getClothHandle() {
//        return new ClothsHandle();
//    }
}
